<!-- S 新增的选项卡 -->
<script type="text/javascript">	
	function selectBrand(brandId) {
		$('#pageNo').attr('value','1');
		$('#brandId').attr('value',brandId);
		$('#form1').submit();
	}
	function pageNext() {
		$('#brandId').attr('value',${brandId});
		$('#pageNo').attr('value',${page.pageNum+1});
		$('#form1').submit();
	}
	
	function pagePre() {
		$('#brandId').attr('value',${brandId});
		$('#pageNo').attr('value',${page.pageNum-1});
		$('#form1').submit();
	}
	
	function pageSelect() {
		$('#brandId').attr('value',${brandId});
		$('#form1').submit();
	}
</script>
<div class="grid-layout more-luxury-mod">
	<#if details?exists>
		<div class="hd">
			<ul class="more-luxury-menu">
				<#list details as detail>
					<li class="cur">
						<a href="javascript:void(0);" onclick="selectBrand('${detail.entityId}')" name="A1" id="A1">
						<img src="${img_server_url + "/" + detail.imageUrl1}"  /></a>
					</li>
				</#list>
			</ul>
		</div>
	</#if>
	
	<#if page?exists>
		<div class="bd">
		<form action="${basePath}luxury/index.htm#A1" method="post" name="form1">
		<input type="hidden" name="brandId" id="brandId"/>
			<div class="more-luxury">
				<#if page.rows?exists>
					<ul class="more-luxury-list cur">
						<#list page.rows as product>
							<li>
								<#if product.id?exists>
									<a href="${basePath}product/${product.id}.htm" target="_blank" class="img">
								<#else>
									<a href="#" target="_blank" class="img">
								</#if>
								<img src="${img_server_url + "/" + product.imageUrl1}"/></a>
								<p class="n">商品编号：${product.code}</p>
								<p class="n">品牌：<span class="h">${product.brand.name}</span></p>
								<p class="price">积分价：<em class="s"><span>${product.price?default('0')}</span>积分</em></p>
								<div class="act">
									<a href="http://www.lgx8.com/product/1413.html" class="act-1" title="马上兑换">马上兑换</a>
								</div>
							</li>
						</#list>
					</ul>
				</#if>
			</div>
				<#if page.totalPage != 0>
					<div class="page-nav">
						<#if page.pageNum==1>
							<span class="start">上一页</span>
						<#else>
							<a href="javascript:pagePre();" class="prev">上一页</a>
						</#if>
						
						<span class="page-info">转到
							<select id="pageNo" name="pageNo" onchange="pageSelect()">
								<#if page.totalPage != 0>
									<#list 1..page.totalPage as p>
										<option <#if p==page.pageNum>selected="selected"</#if> value="${p }">${p }</option>
									</#list>
								</#if>
							</select>
							/${page.totalPage }页
						</span>
						
						<#if page.pageNum == page.totalPage>
							<span class="last">下一页</span>
						<#else>
							<a href="javascript:pageNext();" class="next">下一页</a>
						</#if>
					</div>
				</#if>
			</form>
		</div>
	</#if>
</div>
<!-- E 新增的选项卡 -->